#!/bin/bash
# The following may be heavily borrowed from, if not 
# copied from, the NSA's December 20, 2007 "Guide to the 
# Secure Configuration of Red Hat Enterprise Linux 5, Revision 2"

# Title - Disable Interactive Boot

#Initialize variables
export PRECHECK="grep 'PROMPT=no' /etc/sysconfig/init"
export QUESTION="Would you like to disable the Interactive Boot?"
export DESCRIPTION="The PROMPT option allows the console user to perform an interactive system startup, in which it is possible to select the set of services which are started on boot. Using interactive boot, the console user could disable auditing, firewalls, or other services, weakening system security."
export SOLUTION="changeOrAdd PROMPT 'PROMPT=no' /etc/sysconfig/init"